<div class="painel60">
  <%= titulo_form "Docente" %>

  <div class="paineldecontrole">
    <%= link_to image_tag('novo.gif'), new_teacher_path %>
  </div>

  <%= opcoes_avancadas(render :partial => "consulta") %>
  
  <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <%= cabecalho_tabela "Nome do Docente","CPF","SIAPE" %>
    </tr>

    <% @teachers.each do |teacher| %>
      <tr>
        <td><%=h teacher.nome %></td>
        <td><%=h teacher.cpf %></td>
        <td><%=h teacher.siape %></td>
        <td>
          <%= link_to image_tag('editar.gif'), edit_teacher_path(teacher) %>
          <%= link_to image_tag('remover.gif'), teacher, :confirm => 'Are you sure?', :method => :delete %>
        </td>
      </tr>
    <% end %>
  </table>
  <div class="paineldecontrole">
    <%= will_paginate @teachers %>
  </div>
  
</div>